﻿using System;
using System.Runtime.Serialization;
using NCMIS.ObjectModel.MetaData;

namespace NCMIS.AccessControl
{
    /// <summary>
    /// Represents and Access Control List (ACL), which is a list of Acess Control Entries (ACEs). May hold zero or more ACEs.
    /// </summary>
    [DataContract(Name = "acl", Namespace = CmisNs.Cmis)]
    public partial class AccessControlList
    {
        /// <summary>
        /// Array of <see cref="NCMIS.AccessControl.AccessControlEntry"/> that this ACL holds.
        /// </summary>
        [DataMember(Name = "permission")]
        public AccessControlEntry[] Permissions
        {
            get;
            set;
        }
    }
}
